package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/8/3 上午9:55
 */
public class ScoreStatisticsEntity implements Parcelable {
    /**
     * group_name : 100分
     * score : 26.18
     * color : #EAEAAE
     */

    private String group_name;//考试得分组名
    private String score;//考试得分占比
    private String color;//颜色值

    public String getGroup_name() { return group_name;}

    public void setGroup_name(String group_name) { this.group_name = group_name;}

    public String getScore() { return score;}

    public void setScore(String score) { this.score = score;}

    public String getColor() { return color;}

    public void setColor(String color) { this.color = color;}

    public ScoreStatisticsEntity() {}


    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.group_name);
        dest.writeString(this.score);
        dest.writeString(this.color);
    }

    protected ScoreStatisticsEntity(Parcel in) {
        this.group_name = in.readString();
        this.score = in.readString();
        this.color = in.readString();
    }

    public static final Creator<ScoreStatisticsEntity> CREATOR = new Creator<ScoreStatisticsEntity>() {
        @Override
        public ScoreStatisticsEntity createFromParcel(Parcel source) {return new ScoreStatisticsEntity(source);}

        @Override
        public ScoreStatisticsEntity[] newArray(int size) {return new ScoreStatisticsEntity[size];}
    };
}
